﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainMasterPage.master" AutoEventWireup="true"
    CodeFile="NewCouresPage.aspx.cs" Inherits="Modeling_Sub_Pages_NewsPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        #main
        {
            min-width: 1050px;
        }
        .toCenter
        {
            margin-right: auto;
            margin-left: auto;
        }
        .timeText
        {
            color: #333333;
            font-size: 16px;
        }
        .listViewStyleEvents
        {
            border: thin solid #C0C0C0;
            width: 325px;
            padding-bottom: 20px;
            vertical-align: top;
            padding-top: 10px;
            padding-left: 10px;
        }
        .firstEventRight
        {
            background-color: #2F3957;
            color: #FFFFFF;
            font-weight: bold;
            font-size: 18px;
            vertical-align: top;
            padding-top: 25px;
            padding-left: 15px;
        }
        .linkStyle2
        {
            font-size: 15pt;
            text-decoration: none;
            color: #FFFFFF;
            font-weight: bold;
        }
        .linkStyle2:hover
        {
            cursor: pointer;
        }
        
        .linkStyle2:visited
        {
            font-size: 15pt;
            text-decoration: none;
            color: #FFFFFF;
            font-weight: bold;
        }
        .timeText2
        {
            color: #FFFFFF;
            font-size: 13pt;
            font-weight: lighter;
        }
        .linkStyle3
        {
            padding: 5px;
            font-size: 13pt;
            text-decoration: none;
            color: #3333FF;
            background-color: #FFFFFF;
            font-weight: lighter;
            font-style: italic;
        }
        .linkStyle3:hover
        {
            cursor: pointer;
            color: #FFFFFF;
            background-color: #3366FF;
        }
        .EventTable
        {
            border-top-style: solid;
            border-top-width: thick;
            border-top-color: #999999;
        }
        .linkEvent
        {
            color: #293392;
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .linkEvent:hover
        {
            text-decoration: underline;
        }
        .linkEvent:visited
        {
            color: #293392;
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .tdCenter
        {
            border-top-style: solid;
            border-bottom-style: solid;
            border-top-width: thin;
            border-bottom-width: thin;
            border-top-color: #C0C0C0;
            border-bottom-color: #C0C0C0;
            height: 5px;
        }
        .dataPagerButton
        {
            text-decoration: none;
            font-size: 15px;
            font-weight: bold;
        }
        .dataPageTDStyle
        {
            text-align: right;
            border-top-style: solid;
            border-bottom-style: solid;
            border-top-width: thin;
            border-bottom-width: thin;
            border-top-color: #C0C0C0;
            border-bottom-color: #C0C0C0;
        }
        #tbEventList
        {
            padding-bottom: 20px;
            margin-right: auto;
            margin-left: auto;
        }
        #center1
        {
            width: 1060px;
            min-height: 500px;
            padding-top: 15px;
            margin-right: auto;
            margin-left: auto;
        }
        #center
        {
            width: 800px;
        }
        .lbTimeTable
        {
            border: thin solid #000000;
            font-weight: bold;
            text-align: center;
        }
        .readMore
        {
            color: #3B7ABE;
            font-style: italic;
        }
        .readMore:hover
        {
            text-decoration: none;
            color: #0066FF;
        }
        .readMore:visited
        {
            text-decoration: none;
            color: #3B7ABE;
            font-style: italic;
        }
        .linkTitle
        {
            font-size: 20px;
            font-weight: bold;
            color: #6A0707;
        }
        .linkTitle:hover
        {
            text-decoration: none;
        }
        .linkTitle:visited
        {
            color: #6A0707;
        }
        .tbCourses
        {
            border-bottom-style: dotted;
            border-bottom-width: thin;
            border-bottom-color: #808080;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <div id="center1">
        <div id="left">
            <table>
                <tr>
                    <td id="activeTD">
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl="~/SubPages/NewCouresPage.aspx"
                            CssClass="activeLink">New Courses</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink6" runat="server" NavigateUrl="~/SubPages/Achievements.aspx"
                            CssClass="LinkStyle1">Achievements</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/SubPages/DepartmentPage.aspx"
                            CssClass="LinkStyle1">Departments</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl="~/SubPages/FacilitiesPage.aspx"
                            CssClass="LinkStyle1">Facilities</asp:HyperLink>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/SubPages/FacultyPage.aspx"
                            CssClass="LinkStyle1">Faculty</asp:HyperLink>
                    </td>
                </tr>
            </table>
        </div>
        <div id="center">
            <table width="100%">
                <tr>
                    <td>
                        <asp:ListView ID="ProductDataList2" runat="server" GroupItemCount="1" OnPagePropertiesChanged="ProductDataList2_PagePropertiesChanged"
                            OnItemDataBound="ProductDataList2_ItemDataBound">
                            <LayoutTemplate>
                                <table class="toCenter" width="100%">
                                    <tr>
                                        <td>
                                            <table border="0" width="100%">
                                                <asp:PlaceHolder runat="server" ID="groupPlaceHolder"></asp:PlaceHolder>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </LayoutTemplate>
                            <GroupTemplate>
                                <tr>
                                    <asp:PlaceHolder runat="server" ID="itemPlaceHolder"></asp:PlaceHolder>
                                </tr>
                            </GroupTemplate>
                            <ItemTemplate>
                                <td>
                                    <table width="100%" class="tbCourses">
                                        <tr>
                                            <td>
                                                <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl='<%# String.Format("~/SubPages/Coures.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                                    Text='<%# DataBinder.Eval(Container.DataItem, "[Name]", "{0:c}")%>' CssClass="linkTitle"></asp:HyperLink>
                                                <br />
                                                <strong>Subject: </strong>
                                                <asp:Label ID="Label1" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Subject]", "{0:c}")%>'></asp:Label>
                                                <br />
                                                <strong>Teacher: </strong>
                                                <asp:Label ID="Label2" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Teacher]", "{0:c}")%>'></asp:Label>
                                                <br />
                                                <strong>Date start: </strong>
                                                <asp:Label ID="Label3" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Date Start]")%>'></asp:Label>
                                                <br />
                                                <asp:HyperLink ID="HyperLink5" runat="server" NavigateUrl='<%# String.Format("~/SubPages/Coures.aspx?ID={0}", DataBinder.Eval(Container.DataItem, "[ID]")) %>'
                                                    CssClass="readMore">More details...</asp:HyperLink>
                                            </td>
                                            <td valign="top" width="185">
                                                <asp:Label ID="lblSunday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Sunday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Sunday"></asp:Label>
                                                <asp:Label ID="lblMonday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Monday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Monday"></asp:Label>
                                                <asp:Label ID="lblTuesday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Tuesday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Tuesday"></asp:Label>
                                                <asp:Label ID="lblWednesday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Wednesday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Wednesday"></asp:Label>
                                                <asp:Label ID="lblThursday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Thursday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Thursday"></asp:Label>
                                                <asp:Label ID="lblFriday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Friday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Friday"></asp:Label>
                                                <asp:Label ID="lblSaturday" runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "[Saturday]")%>'
                                                    CssClass="lbTimeTable" Width="20" ToolTip="Saturday"></asp:Label>
                                                <br />
                                                <asp:Label ID="Label4" runat="server" Text='<%# String.Format("{0} - {1}", DataBinder.Eval(Container.DataItem, "[Time Start]"), DataBinder.Eval(Container.DataItem, "[Time End]")) %>'
                                                    CssClass="timeText"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </ItemTemplate>
                        </asp:ListView>
                    </td>
                </tr>
                <tr>
                    <td class="dataPageTDStyle">
                        <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ProductDataList2" PageSize="15">
                            <Fields>
                                <asp:NextPreviousPagerField NextPageText="Next ►" PreviousPageText="◄Previous" ButtonCssClass="dataPagerButton" />
                            </Fields>
                        </asp:DataPager>
                    </td>
                </tr>
            </table>
        </div>
    </div>
</asp:Content>
